// epic_era.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"


#include <iostream>
#include <string>
#include <vector>
#include <sstream>

#include "Command.h"

using namespace std;

void pause() {
  cout << "Press ENTER to continue... ";
  cin.ignore( std::numeric_limits<streamsize>::max(), '\n' );
}

// Splits string on ' ', returns vector<string>
vector<string> tokenize(string inp) {
	string buf;
	stringstream ss(inp);
	vector<string> ret_tokens;
	while (ss >> buf)
		ret_tokens.push_back(buf);
	return ret_tokens;
}

int _tmain(int argc, _TCHAR* argv[])
{

	string raw_input;
	while (1) {
		getline(cin, raw_input);
		vector<string> input = tokenize(raw_input);
		if (input.size() > 0)
			cout << input[0] << endl;
		else
			cout << "Please type a command." << endl;
	}

	pause();

	return 0;
}

